package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Category;
import cn.tedu.csmall.product.pojo.vo.CategoryListItemVO;
import cn.tedu.csmall.product.pojo.vo.CategoryStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【pms_category(类别)】的数据库操作Mapper
 * @createDate 2023-06-13 10:34:27
 * @Entity generator.domain.Category
 */
@Repository
public interface CategoryMapper extends BaseMapper<Category> {


    CategoryStandardVO getStandardById(Long id);

    List<CategoryListItemVO> list();

    List<CategoryListItemVO> listByParentId(Long parentId);

}




